import React from 'react'

function child({msg,changeMsg}) {
  return (
    <div>
        {/* 子传父 */}
        <button onClick={changeMsg}>{msg}</button>
    </div>
  )
}

export default child
